package com.example.library.service;

import com.example.library.entity.Admin;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author sx
 * @since 2024-12-17
 */
public interface IAdminService extends IService<Admin> {

    Admin login(String username, String password);
    Admin getCurrentAdmin();
    Admin updateProfile(Admin updatedAdmin);
    Admin findByName(String name);

    Admin getAdminByName(String name);
}
